@if(empty($info))
    <h2>没有设置打印模版</h2>
@else
    <select id="cc" style="width:200px;">
        @foreach($info as $item)
            <option value="{{$item['id']}}">{{$item['name']}}</option>
        @endforeach
    </select>

    <a id="btn" href="#" onclick="onPrint()" class="easyui-linkbutton" data-options="iconCls:'icon-print'">打印</a>

    <script>
        function onPrint(){
            window.open("/sys/templet/print?record_id={{$params['record_id']}}&templet_id="+$('#cc').val());
        }
    </script>
@endif
